import request from '@/utils/request'

// 查询装袋打包列表
export function listPackaging(query) {
  return request({
    url: '/manage/packaging/list',
    method: 'get',
    params: query
  })
}

// 查询装袋打包详细
export function getPackaging(id) {
  return request({
    url: '/manage/packaging/' + id,
    method: 'get'
  })
}

// 新增装袋打包
export function addPackaging(data) {
  return request({
    url: '/manage/packaging',
    method: 'post',
    data: data
  })
}

// 修改装袋打包
export function updatePackaging(data) {
  return request({
    url: '/manage/packaging',
    method: 'put',
    data: data
  })
}

// 删除装袋打包
export function delPackaging(id) {
  return request({
    url: '/manage/packaging/' + id,
    method: 'delete'
  })
}
